package com.kuhnwei.examples.patterns.factory;

/**
 * Created by Kuhn on 2017/8/5.
 */
public class _Main {
    public static void main(String[] args) {
        Fruit fruit = Factory.getInstance("apple");
        fruit.eat();
        fruit = Factory.getInstance("cherry");
        fruit.eat();
    }
}
